﻿#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    setWindowTitle("demoA");
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::init()
{
    qDebug()<<"init "<<desktopWnd;
    if(desktopWnd)
    {
        SetParent(desktopWnd, (HWND)winId());
        SetWindowPos(desktopWnd,NULL,0,0,0,0, SWP_NOZORDER | SWP_NOSIZE);
    }
}
